package chances.epg.entity.content;

import java.util.List;

public class Series extends AbstractContent {
	private String actors;// 演员
	private String director;// 导演
	private String compere;// 主持人
	private String score;// 评分
	private String year;// 出品年份
	private String country;// 发行国家/地区
	private String dub;// 配音
	private String caption; // 字幕
	private String summaryMedium;// 内容简介;
	private String summaryShort;// 内容看点;
	private String tags;// 标签
	private String mainFolder;// 一级分类
	private String subFolder;// 二级分类
	private int episodeNumber;// 剧集数
	private Integer hdType;// 高清/标清
	private String previewCode;// 预览片
	private String externalCode;
	private Integer freePlayTime;// 免费播放时长，对于收费内容使用，单位：分钟
	private String seriesType;// 电视剧:series;系列剧：series1

	public String getActors() {
		return actors;
	}

	public void setActors(String actors) {
		this.actors = actors;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getDub() {
		return dub;
	}

	public void setDub(String dub) {
		this.dub = dub;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getMainFolder() {
		return mainFolder;
	}

	public void setMainFolder(String mainFolder) {
		this.mainFolder = mainFolder;
	}

	public String getSubFolder() {
		return subFolder;
	}

	public void setSubFolder(String subFolder) {
		this.subFolder = subFolder;
	}

	public int getEpisodeNumber() {
		return episodeNumber;
	}

	public void setEpisodeNumber(int episodeNumber) {
		this.episodeNumber = episodeNumber;
	}

	public Integer getHdType() {
		return hdType;
	}

	public void setHdType(Integer hdType) {
		this.hdType = hdType;
	}

	public String getPreviewCode() {
		return previewCode;
	}

	public void setPreviewCode(String previewCode) {
		this.previewCode = previewCode;
	}

	/**
	 * @return the externalCode
	 */
	public String getExternalCode() {
		return externalCode;
	}

	/**
	 * @param externalCode
	 *            the externalCode to set
	 */
	public void setExternalCode(String externalCode) {
		this.externalCode = externalCode;
	}

	private List<Episode> episodes;

	public Episode getEpgEpisode(String code) {
		for (Episode epgEpisode : episodes) {
			if (code.equals(epgEpisode.getContentCode())) {
				return epgEpisode;
			}
		}
		return null;
	}

	/**
	 * @return the episodes
	 */
	public List<Episode> getEpisodes() {
		return episodes;
	}

	/**
	 * @param episodes
	 *            the episodes to set
	 */
	public void setEpisodes(List<Episode> episodes) {
		this.episodes = episodes;
	}

	public String getCompere() {
		return compere;
	}

	public void setCompere(String compere) {
		this.compere = compere;
	}

	public Integer getFreePlayTime() {
		return freePlayTime;
	}

	public void setFreePlayTime(Integer freePlayTime) {
		this.freePlayTime = freePlayTime;
	}

	public String getSeriesType() {
		return seriesType;
	}

	public void setSeriesType(String seriesType) {
		this.seriesType = seriesType;
	}

	public String getSummaryMedium() {
		return summaryMedium;
	}

	public void setSummaryMedium(String summaryMedium) {
		this.summaryMedium = summaryMedium;
	}

	public String getSummaryShort() {
		return summaryShort;
	}

	public void setSummaryShort(String summaryShort) {
		this.summaryShort = summaryShort;
	}
}
